package cn.thoughtworks.school.entities;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@DynamicInsert
@Table(name = "nodeBBUser")
@Setter
@Getter
@NoArgsConstructor
public class NodeBBUser {
    @Id
    private Long userId;
    private String username;
    private String password;


    public NodeBBUser(String username, String password, Long userId) {
        this.username = username;
        this.password = password;
        this.userId = userId;
    }
}
